<?php

namespace app\validate;

use think\Validate;

class DelayOrderValidate extends Validate
{

    // StepCategoryWaitConfirmCount
    public function sceneStepCategoryWaitConfirmCount(): DelayOrderValidate
    {
        return $this->append([
//            'param.type' => 'require|in:task,delay_order',
            'param.project_id' => 'require|integer',
            'param.date_search' => 'array',
        ]);
    }
    // 延期单统计验证
    public function sceneGetDelayOrderCount(): DelayOrderValidate
    {
        return $this->append([
            'param.project_id' => 'require|integer',
        ]);
    }
}
